package com.mewp.permissions.system.service.impl;

import com.mewp.permission.system.service.AsyncOperLogService;
import com.mewp.permissions.model.po.SysOperLog;
import com.mewp.permissions.system.mapper.SysOperLogMapper;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author mewp
 * @version 1.0
 * @date 2023/8/6 01:37
 */
@Service
public class AsyncOperLogServiceImpl implements AsyncOperLogService {
    @Resource
    private SysOperLogMapper operLogMapper;

    @Async
    @Override
    public void saveSysLog(SysOperLog sysOperLog) {
        operLogMapper.insert(sysOperLog);
    }
}
